package com.example.shop_2207.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.shop_2207.R
import com.example.shop_2207.entity.CarEntity
import com.example.shop_2207.net.GlideUtils

class PayingAdapter(list: MutableList<CarEntity>):BaseQuickAdapter<CarEntity,BaseViewHolder>(R.layout.item_paying,list) {
    override fun convert(holder: BaseViewHolder, item: CarEntity) {
        holder.setText(R.id.pay_desc,item.goods_desc)
        holder.setText(R.id.pay_price,"${item.goods_default_price}元/个")
        holder.setText(R.id.pay_count,"X ${item.count}")
        GlideUtils.loadImage(context,item.goods_default_icon,holder.getView(R.id.pay_iv))
    }
}